<?php 
/* SVN FILE: $Id$ */
/* Traducao Test cases generated on: 2009-01-05 23:01:57 : 1231206717*/
App::import('Model', 'Traducao');

class TraducaoTestCase extends CakeTestCase {
	var $Traducao = null;
	var $fixtures = array('app.traducao', 'app.testamento');

	function startTest() {
		$this->Traducao =& ClassRegistry::init('Traducao');
	}

	function testTraducaoInstance() {
		$this->assertTrue(is_a($this->Traducao, 'Traducao'));
	}

	function testTraducaoFind() {
		$this->Traducao->recursive = -1;
		$results = $this->Traducao->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Traducao' => array(
			'id'  => 1,
			'lingua'  => 'Lor',
			'nome'  => 'Lorem ipsum dolor sit amet'
			));
		$this->assertEqual($results, $expected);
	}
}
?>